<?php
/**
 * Created by app路由.
 * User: Administrator
 * Date: 2018/12/18
 * Time: 上午 9:52
 *
 */

Route::post("/login", "AuthController@login"); // 手机加密码登陆
Route::post("/wechat_login", "AuthController@weChatLogin"); // 微信登陆
Route::post("/bind_phone_login", "AuthController@bindPhoneLogin"); // 绑定电话号码
Route::post("/register", "AuthController@register");// 注册
Route::post("/phone_login", "AuthController@phoneLogin"); // 手机登陆
Route::post ("/retrieve-password", "AuthController@retrievePassword");  // 找回密码

Route::group(['middleware' => 'auth:api'], function () {
	Route::group(['prefix' => '/account'], function () {
		Route::post("/reset-pwd", "SettingController@resetPwd"); //修改登录密码
		Route::post("/validate-old-phone", "SettingController@validateOldPhone");//验证旧手机号
		Route::post("/change-phone", "SettingController@changePhone");//验证旧手机号
		Route::post("/validate-payment-pwd", "SettingController@validatePaymentPwd");//验证旧支付密码
		Route::post("/set-payment-pwd", "SettingController@setPymPwd");//验证旧支付密码
		Route::post("/validate-payment-sms", "SettingController@validatePaymentSms");//忘记支付密码验证短信
	});
	Route::group(['prefix' => '/message'], function () {
		Route::get("/popularity", "MessageController@popularity");//人气
		Route::get("/interested", "MessageController@interested");//感兴趣
		Route::get("/get-system-msg", "MessageController@getSysMsg");//小脉宝消息
		Route::get("/get-group-user-msg", "MessageController@getUserMsgGroup");//用户发送消息分组列表
		Route::get("/get-user-msg", "MessageController@getUserMsg");//某个用户发送消息列表
		Route::post("/del-user-msg", "MessageController@delUserMsg");//删除某个用户发送消息列表
		Route::post("/del-sys-msg", "MessageController@delSysMsg");//删除某个用户发送消息列表
		Route::post('/cache-push-msg', 'MessageController@cachePushMsg');
	});
	Route::post('/pay',"PayController@pay");
});
Route::get("/oss-sts","OssController@sts");
Route::get("/get-sms","OssController@getSms");
Route::get("/banner","OssController@banner");
Route::post("/add-interest", "MessageController@addInterested");
Route::get("/get-push-msg", "MessageController@getPushMsg");//获取推送消息
Route::any("/wxnotify","PayController@wxnotify");
Route::any("/alinotify","PayController@alinotify");
Route::get('/reward/rank', 'RewardController@rank');

Route::get('/test','TestController@test');